|
오라클 실습 |
[1] |
|
등록일:2009-05-28 00:07:24 (0%) 작성자: 제목:관련없는 테이블간의 처리 |
|
네트웍 로드와 SQL성능을 고려한다면 한 SQL로 처리하는 것이 효율적이다. 이는 관련이 없는 테이블에도 적용이된다.
Select name from emp Where empno = 1000;
Select name from dept Where deptno = 200;
Select name from item Where itemtype = ‘RAD’
<개선안>
Select E.name, D.name, I.name
From Emp E, Dept D, Item I, Dual X
Where NVL(‘x’,x.dummy) = NVL(‘x’,E.rowid(+))
And NVL(‘x’,x.dummy) = NVL(‘x’,D.rowid(+))
And NVL(‘x’,x.dummy) = NVL(‘x’,I.rowid(+))
And E.empno(+) = 1000
And D.deptno(+) = 200
And I.itemtype(+) = ‘RAD’; |
[본문링크] 관련없는 테이블간의 처리
|
[1]
|
|
|
|
|
코멘트(이글의 트랙백 주소:/cafe/tb_receive.php?no=31488 |
|
|
|
|
|
|
|
|
|
Copyright byCopyright ⓒ2005, SSISO Community All Rights Reserved.
|
|
|